<include file="Public:header" />
    <h3 class="title"><em>网站审核</em><span><a href="{:U('recycle')}">回收站&nbsp;&rsaquo;&nbsp;</a></span><span><a href="{:U('Websites/index')}">去网站列表&nbsp;&rsaquo;&nbsp;</a></span></h3>
	<div class="listbox">
        <form name="mform" method="post" action="{:U('index')}">
		<div class="search">
			<span>名称：</span><input name="name" type="text" id="name" class="ipt" size="30" value="{$pageInfo['name']}" />
            <select name="cate_id" id="cate_id" class="sel">
                <option value="">所有分类</option>
                {$cateOption}
			</select>
            <script type="text/javascript">
			$(function(){
				$("#cate_id").val("{$pageInfo['cate_id']}");	
			});
			</script>
            <select name="status" id="status" class="sel">
                <option value="">所有状态</option>
                <foreach name="statusArray" item="v" key="k">
                <option value="{$k}">{$v}</option>
                </foreach>
			</select>
            <script type="text/javascript">
			$(function(){
				$("#status").val("{$pageInfo['status']}");	
			});
			</script>
			<input type="submit" class="btn" value="搜索" />
        </div>
        </form>
        
        <form name="mform" method="post" action="{:U('doAction')}">
    	<div class="toolbar">
			<select name="act" id="act" class="sel">
			<option value="nodelAll" style="color: #f00;">放到回收站</option>
			<option value="setIn">批量入库</option>
			</select>
            
			<input type="submit" class="btn" value="应用" onClick="if(IsCheck('id[]')==false){alert('请指定您要操作的ID！');return false;}else{return confirm('确认执行此操作吗？');}">
		
        </div>
        <table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th><input type="checkbox" id="ChkAll" onClick="CheckAll(this.form)">选择</th>
				<th>网站标题</th>
				<th>分类</th>
				<th>提交时间</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			
            <empty name="list">
			<tr><td colspan="8">无任何数据！</td></tr>
            <else/>
            	<volist name="list" id="row">
                <tr>
                    <td><input name="id[]" type="checkbox" value="{$row['id']}">{$row['id']}</td>
                    <td style="text-align:left; width:40%;">{$row['name']}<br />{$row['url']}</td>
                    <td>{$categoryTextArray[$row['cate_id']]}</td>
                    <td>{:date('Y-m-d', $row['add_time'])}</td>
                    <td>{$statusArray[$row['status']]}<eq name="row['status']" value="2">：{$row['status_message']}</eq></td>
                    <td><a href="{:U('Websites/add', array('apply_id'=>$row['id']))}">入库</a> | <a href="{:U('nodel', array('id'=>$row['id']))}" onclick="return confirm('你确定放到回收站吗?');">放到回收站</a></td>
                </tr>
                </volist>
            </empty>
		</table>
		</form>
        <include file="Public:page" />
	</div>
<include file="Public:footer" />
